<?php
// +----------------------------------------------------------------------
//            -------------------------
//           /   / ----------------\  \
//          /   /             \  \
//         /   /              /  /
//        /   /    /-------------- /  /
//       /   /    /-------------------\  \
//      /   /                   \  \
//     /   /                     \  \
//    /   /                      /  /
//   /   /      /----------------------- /  /
//  /-----/      /---------------------------/
// +----------------------------------------------------------------------
// | Copyright (c) 2016 http://baimifan.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: Sage 2016/8/1  9:26
// +----------------------------------------------------------------------
namespace Service;
class PublicService {
    function __construct($container) {
        $this->di=$container;
    }
    static function  log($model , $content) {
        M('Log')->data(['model' => $model , 'log' => $content])->add();
    }
}